package com.lagou.wed.servlet;

import com.lagou.base.BaseServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;

@WebServlet("/test01")
public class TestServlet extends BaseServlet {

        public void  addCourse(HttpServletRequest req, HttpServletResponse resp){
        try {
            resp.getWriter().print("增加课程");
        }catch (IOException e){
            e.printStackTrace();
        }

//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//         this.doGet(req,resp);
    }
    public void  removeCourse(HttpServletRequest req, HttpServletResponse resp) {
        try {
            resp.getWriter().print("删除课程");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public void updateCourse(HttpServletRequest req, HttpServletResponse resp) {
        try {
            resp.getWriter().print("更改课程");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public void findCourse(HttpServletRequest req, HttpServletResponse resp) {
        try {
            resp.getWriter().print("查找课程");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
